package com.book.bookmanager.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@ApiModel(
        value = "User对象",
        description = "用户对象"
)
@TableName("user")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class User {
    @ApiModelProperty("登录名")
    @TableField("userName")
    private String userName;
    @ApiModelProperty("密码")
    @TableField("password")
    private String password;
    @ApiModelProperty("电话")
    @TableField("phone")
    private Integer phone;
    @ApiModelProperty("邮件")
    @TableField("email")
    private String email;
    @ApiModelProperty("是否删除")
    @TableField("is_deleted")
    private Integer is_deleted;

    @TableField(exist = false)
    private List<Integer> RoleIdList;
}
